package com.ecoolex.discount.sales.job.scheduler;

import com.ecoolex.discount.sales.core.service.YouWorldService;
import com.ecoolex.framework.scheduler.Job;
import com.ecoolex.framework.scheduler.JobComponent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * 由我礼品卡刷新任务
 * 
 * @author shaon
 */
@JobComponent
public class YouWorldRefreshJob {

	private Logger log = LoggerFactory.getLogger(YouWorldRefreshJob.class);

	@Autowired
	private YouWorldService youWorldService;

	@Job(name = "discount.sales.YouWorldRefreshJob.refreshToken", describe = "由我礼品卡刷新Token任务")
	public void refreshToken() {
		youWorldService.refreshToken();
	}

	@Job(name = "discount.sales.YouWorldRefreshJob.refreshAccountStatus", describe = "由我礼品卡刷新账户状态任务")
	public void refreshAccountStatus() {
		youWorldService.refreshAccountStatus();
	}

	@Job(name = "discount.sales.YouWorldRefreshJob.refreshCards", describe = "由我礼品卡刷新礼品卡信息任务")
	public void refreshCards() {
		youWorldService.refreshCards();
	}
	
	@Job(name = "discount.sales.YouWorldRefreshJob.refreshExchangeRate", describe = "由我礼品卡刷新汇率任务")
	public void refreshExchangeRate() {
		youWorldService.refreshExchangeRate();
	}
}